#include "speedo.h"

Speedo::Speedo() : Panel(false), m_speed(0)
{
	active = true;
	isMovable = true;
	
	position.x = 30;
	position.y = 200;

	v_width = 38;
	v_height = 20;

	hsp = 33;
	vsp = 13;
}

void Speedo::draw()
{
	if (active)
	{
		drawBackground();
		drawBorders();

		glColor3f(1,1,1);
		Textprinter::Instance()->printR(position.x+hsp,	position.y+vsp,	"%1.1f",	m_speed);
	}
}

Speedo::~Speedo()
{
}
